<template>
  <div>
    <!-- <m-parent></m-parent> -->
    <!-- <router-link to="/home">home</router-link> -->
    <button @click="toHome">home</button>
    <router-view />
  </div>
</template>

<script>
// import MParent from './views/ParentPage'
export default {
  // components: {
  //   MParent,
  // },
  methods: {
    toHome() {
      // this.$router.push({ path: '/home' })
      // this.$router.push({ path: '/home', query: { name: 'Jack' } })
      this.$router.push({ name: 'home', params: { id: 3 } })
    },
  },
}
</script>

<style></style>
